﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.ComponentModel;

namespace CommunitySystemModel
{
    [Serializable]
    [DataContract]
    public class DataDictionaryItemModel : INotifyPropertyChanged
    {

        public event PropertyChangedEventHandler PropertyChanged;

        public void OnPropertyChanged(string PropName)
        {
            if (PropertyChanged != null)
            {
                this.PropertyChanged(this, new PropertyChangedEventArgs(PropName));
            }
        }



        
        private int _Id;
        [DataMember]
        public int Id
        {
            get { return _Id; }
            set { _Id = value;this.OnPropertyChanged("Id"); }
        }
        
        private int _parentId;
        [DataMember]
        public int ParentId
        {
            get { return _parentId; }
            set { _parentId = value;this.OnPropertyChanged("ParentId"); }
        }
        
        private string _dictCode;
        [DataMember]
        public string DictCode
        {
            get { return _dictCode; }
            set { _dictCode = value; this.OnPropertyChanged("DictCode"); }
        }


        private string _dictValue;
         [DataMember]
        public string DictValue
        {
            get { return _dictValue; }
            set { _dictValue = value; this.OnPropertyChanged("DictValue"); }
        }


         private string _dictPinYin;
        [DataMember]
         public string DictPinYin
        {
            get { return _dictPinYin; }
            set { _dictPinYin = value; this.OnPropertyChanged("DictPinYin"); }
        }



        private int _Sec=0;

        [DataMember]
        public int Sec
        {
            get { return _Sec; }
            set { _Sec = value; this.OnPropertyChanged("Sec"); }
        }
    }
}
